package cn.edu.zafu.bigdata.liuwenyi;

class Book{
    private String title;
    private String author;
    private double price;

    public Book (String title, String author, double price){
        this.title = title;
        this.author = author;
        this.price = price;
    }

    public String toString(){
        return "Book[title = "+ title + ", author = "+ author + ", price = "+ price + "]";
    }
}
public class Book_Test {
    public static void main(String[] args) {
        Book book1 = new Book("Java Programming","John Doe",29.99);

        System.out.println(book1);
    }
}
